package com.tang.Utils;
import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;
public class WebUtils {
    public static <T> T copyParam(Map m,T bean) throws InvocationTargetException, IllegalAccessException {
        BeanUtils.populate(bean,m);
        return bean;
    }
}
